<?php

namespace app\user\traits\controllers;

use think\Cache;
use think\Session;
use think\Config;
use think\Request;
use think\Exception;

trait TraitUser
{
    protected function getLoginUser()
    {
        return Session::has('user.id') ? \think\Loader::model('Users')->getUserInfo(['id' => Session::get('user.id')]) : null;
    }
}
